package com.dream21th.admin.controller;

import com.dream21th.admin.service.SysLogService;
import com.dream21th.admin.utils.ComResp;
import com.dream21th.admin.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Map;


@Controller
@RequestMapping("/sys/log")
public class SysLogController {
	@Autowired
	private SysLogService sysLogService;

	/**
	 * 列表
	 */
	@ResponseBody
	@GetMapping("/list")
	public ComResp list(@RequestParam Map<String, Object> params){
		PageUtils page = sysLogService.queryPage(params);

		return ComResp.ok().put("page", page);
	}

}
